package cn.edu.sdjzu.filter;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;

@WebFilter(filterName = "Filter 2",urlPatterns = {"/*"})
public class Filter2 implements Filter {
    public void destroy(){}
    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        System.out.println("Filter 2 - basic and login begins");
        chain.doFilter(request,response);
        System.out.println("Filter 2 - basic and login ends");
    }
    public void init(FilterConfig config)throws ServletException{}
}
